import React from "react";
import stylescss from "./infocard.module.scss"
const Infocard = (
    {
        data,
        style,
        itemStyle,
    }
) => {
    return (
        <>
            <div className={stylescss.info} style={{ ...style }}>
                {
                    data.map((item, index) => {
                        return (
                            <div className={stylescss.info_item} key={index} style={{ ...itemStyle }}>
                                <div className={stylescss.info_item_center} >
                                    <div className={stylescss.item_text}>{item.value}</div>
                                    <div className={stylescss.item_lable}>{item.title}</div>
                                </div>
                            </div>
                        )
                    })
                }
            </div>
        </>
    )
}
export default Infocard